3b9916d187fb4face110d884caea3da29f7e5e9f,JPA Modeler Core/src/org/netbeans/jpa/modeler/specification/model/util/JPAModelerUtil.java,JPAModelerUtil,manageCompositePrimaryKey,#PersistenceClassWidget#EntityMappings#,746

Before Change


    private static boolean manageCompositePrimaryKey(PersistenceClassWidget<? extends ManagedClass> persistenceClassWidget, EntityMappings entityMappings) {
        //Start : IDCLASS,EMBEDDEDID //((Entity) persistenceClassWidget.getBaseElementSpec()).getClazz()
        if (persistenceClassWidget.getBaseElementSpec() instanceof PrimaryKeyContainer) {
            PrimaryKeyContainer pkContainerSpec = (PrimaryKeyContainer) persistenceClassWidget.getBaseElementSpec();
            CompositePKProperty compositePKProperty = persistenceClassWidget.isCompositePKPropertyAllow();

            if (compositePKProperty == CompositePKProperty.NONE) {

After Change


    private static boolean manageCompositePrimaryKey(PersistenceClassWidget<? extends ManagedClass> persistenceClassWidget, EntityMappings entityMappings) {
        //Start : IDCLASS,EMBEDDEDID //((Entity) persistenceClassWidget.getBaseElementSpec()).getClazz()
        if (persistenceClassWidget.getBaseElementSpec() instanceof PrimaryKeyContainer) {
            ManagedClass managedClass = persistenceClassWidget.getBaseElementSpec();
            PrimaryKeyContainer pkContainerSpec = (PrimaryKeyContainer)managedClass ;
            CompositePKProperty compositePKProperty = persistenceClassWidget.isCompositePKPropertyAllow();